package speedball;

import javafx.geometry.Point2D;
import javafx.scene.Node;

public class NodeManage {
	
	
	
	public static void setOffset(Point2D offsetPoint,Node... nodes) {
		for (Node node : nodes) {
			setOffset(offsetPoint,node);
		}
	}
	
	
	
	
	
	public static Node setOffset(Point2D offsetPoint,Node node) {
		node.setLayoutX(node.getLayoutX()+offsetPoint.getX());
		node.setLayoutY(node.getLayoutY()+offsetPoint.getY());
		return node;
	}
	
	
	

}
